package CTRLayer;

import java.util.ArrayList;
import DBLayer.DBActivityDetails;
import ModelLayer.ActivityDetails;

public class ActivityDetailsCTR
{
	public ArrayList<ActivityDetails> findAllActivityDetails()
    {
		DBActivityDetails dbActivityDetails = new DBActivityDetails();
        ArrayList<ActivityDetails> allActivityDetails = new ArrayList<ActivityDetails>();
        allActivityDetails = dbActivityDetails.getAllActivityDetails(false);
        return allActivityDetails;
    }
	
	public ActivityDetails findActivityDetailsID(int ActivityDetailsID)
	{
		DBActivityDetails dbActivityDetails = new DBActivityDetails();
		return dbActivityDetails.searchActivityDetailsID(ActivityDetailsID, true);
	}
}